<div class="activity_item">
<div id='rename' style="right:10px;border:0px red solid;height:<%=(@cur_user.company.roles.size + 4) * 30%>px;width:78px;background:#e5e5e5;clear: both;position:absolute"></div>
<%if params[:role_id].nil?%>
<span class=selected_label>
<%else%>
<span class=label>
<%end%>
<%if @project%>
<%=link_to "All Roles".t,"#"%>(<%=@project.users.size%>)
<%else%>
<%=link_to "All Roles".t,"#"%>
<%end%>
</span>
</div>
<%if project%>
<div class="activity_item" id="cat_item_pm%>">
 <%=render :partial=>'/permission/show_pm',:locals=>{:project=>@project}%>
</div>
<%end%>
<%@cats = (project.nil? ? @cur_user.company : Project.find(project)).roles%>
<%@cats.each do |cat|%>
<div class="activity_item" id="cat_item_<%=cat.id%>">
 <%=render :partial=>'/permission/show_item',:locals=>{:cat=>cat,:label=>label,:project=>project}%>
</div>
<%end%>
<span id="new_cat" class=admin style="display:none">
<%=render :partial=>'/permission/new_item_label',:locals=>{:project=>project,:label=>label}%>
</span>
